package com.estate.auth.controller;

import com.estate.auth.service.AuthService;
import com.estate.bean.Manager;
import com.estate.util.JsonResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth")
public class AuthController {
    @Resource
    private AuthService service;

    @PostMapping("/login")
    public JsonResult login(Manager manager) {
        return service.login(manager);
    }
}
